public class PokerPlayer {
	private String name;
	private int score;
	private Card card1;
	private Card card2;
	private String status;
	private int position;
	private int bet;
	private int toCall;

	public int getToCall() {
		return toCall;
	}
	public void setToCall(int toCall) {
		this.toCall = toCall;
	}
	public void doAction(int dealerPosition, int bet) {
		if (this.toCall == 0) {
			this.setStatus("check");
		} else {
			this.setStatus("fold");
		}
	}
	public void setBet(int bet) {
		this.bet = bet;
		this.toCall -= bet;
	}
	
	private boolean isBigBlind(int dealerPos) {
		return this.position == (dealerPos == 8 ? 0 : dealerPos+2);
	}
	private boolean isSmallBlind(int dealerPos) {
		return this.position == (dealerPos == 9 ? 0 : dealerPos+1);
	}
	private boolean isDealer(int dealerPos) {
		return this.position == dealerPos;
	}
	
	public void setPosition(int position) {
		this.position = position;
	}	
	public String getStatus() {
		return status;
	}
	public void setStatus(String status) {
		this.status = status;
	}
	public Card getCard1() {
		return card1;
	}
	public void setCard1(Card card1) {
		this.card1 = card1;
	}
	public Card getCard2() {
		return card2;
	}
	public void setCard2(Card card2) {
		this.card2 = card2;
	}
	public PokerPlayer(String name, int score) {
		this.name = name;
		this.score = score;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public int getScore() {
		return score;
	}
	public void setScore(int score) {
		this.score = score;
	}
}
